<!DOCTYPE HTML>
<html>
  <head>
    
  	<title>塔城地区公共就业信息有务网_个人用户登录</title>
    <meta charset="UTF-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link href="../common/style.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" href="../common/css/reset.css" />
	<script type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>
	<link href="../common/css/pageCode.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="../js/jquery-1.8.0.js"></script>
	<script type="text/javascript" src="../js/jquery.page.js"></script>
	<script type="text/javascript">
	$(function(){
		
		$(".tcdPageCode").createPage({
			pageCount:6,  //总页数
			current:1,    //当前页
			backFn:function(p){
				//alert(p);
				console.log(p);
				//单击回调方法，p是当前页码
			}
		});
		
		//查询收藏信息
        $.ajax({
            url:"getCollect.action",
            type:"POST",
            headers:{
                token:window.sessionStorage.getItem("token")
            },
            dataType:"json",
            success:function(collectList){
                $("#table1").empty();
                var str=`
                <tr>
                    <th>单位名称</th>
                    <th>岗位名称</th>
                    <th>发布时间</th>
                    <th>招聘人数</th>
                    <th>学历要求</th>
                    <th>工作地点</th>
                    <th>工资范围</th>
                    <th>收藏时间</th>
                    <th>操作</th>
                </tr>
                `
                $("#table1").append(str);
				$.each(collectList,function (key,collect) {
					str="";
					if(collect.rstatus!=0){
						str+="<tr class='gq'>";
					}else{
						str+="<tr>";
					}
					str+="<td>"+collect.dwmc+"</td>" +
						"<td>"+collect.gwmc+"</td>" +
						"<td>"+collect.fbsj+"</td>" +
						"<td>"+collect.zprs+"</td>" +
						"<td>"+collect.xlyq+"</td>" +
						"<td>"+collect.gzdd+"</td>" +
						"<td>"+collect.gzfw+"</td>" +
						"<td>"+collect.createTime+"</td>" +
						"<td><a href=\"javascript:void(0)\" onclick=\"delCollect("+collect.id+");\">删除 </a>";
						if(collect.rstatus!=0){
							str+="<a href='javascript:alert(\"对不起，岗位已过期不存在\");'>查看</a>";
						}else{
							str+="<a href='gr_recruit_des.html?id="+collect.recruitId+"'>查看</a>";
						}
						str+="</td></tr>";
					$("#table1").append(str);
				})
            }
        });
	});

	//删除求职记录
	function delCollect(collectId){
		$.ajax({
			url:"delCollect.action",
			type:"POST",
            headers:{
                token:window.sessionStorage.getItem("token")
            },
			data:{
				collectId:collectId
			},
			success:function(data){
				if(data==1){
				    alert("删除成功")
                }else {
                    alert("删除失败")
                }
			}
		});
	}
	
</script>
<style>
	.gq{
		background:url(../images/12.png) no-repeat;
	}
</style>
  </head>
  
  <body>
 <div class="ban2">
    <div class="nav1">
    	<P><span>马力，欢迎登录！</span>  |  <a href="javascript:void(0);" id="updatePassword">修改密码</a>  |  <a href="#">退出</a></P>
        <ul>
            <li><a href="gr_index.html">个人首页</a></li>
            <li><a href="gr_recruit_search.html">职位搜索</a></li>
            <li><a href="gr_recruit_collect.html">岗位收藏</a></li>
            <li><a href="gr_jobhuntinglog.html">求职记录</a></li>
        </ul>
    </div>
</div>
   <div class="main mt12">
	<div class="fl w195">
    	<dl>
        	<dt><strong>常用功能</strong></dt>
            <dd><img src="../images/ico4.jpg"/><a href="gr_index.html" title="">登录信息</a></dd>
            <dd><img src="../images/ico8.jpg"/><a href="gr_resume_des.html" title="">简历浏览</a></dd>
			<dd><img src="../images/ico5.jpg"/><a href="gr_resume_update.html" title="">简历修改</a></dd>
        </dl>
    </div>
	<div class="fr w795">
    	<div class="yh-tit"><strong>岗位收藏</strong></div>
          <table border="0" cellspacing="0" cellpadding="0" class="zwlb" id="table1">
              <tr>
                <th>单位名称</th>
                <th>岗位名称</th>
                <th>发布时间</th>
                <th>招聘人数</th>
                <th>学历要求</th>
                <th>工作地点</th>
                <th>工资范围</th>
                <th>收藏时间</th>
                <th>操作</th>
              </tr>
			  
			    <tr>
	                <td>某某公司</td>
	                <td>开发</td>
	                <td>2021-02-21</td>
	                <td>2</td>
	                <td>本科</td>
	                <td>北京</td>
	                <td>5000-7000</td>
	                <td>2020-02-22</td>
	                <td>
					<a href="javascript:void(0)" onclick="delCollect(1);">删除</a>
					<a href="gr_recruit_des.html">查看</a>
					</td>
	            </tr>
				<tr class="gq">
	                <td>某某公司</td>
	                <td>开发</td>
	                <td>2021-02-21</td>
	                <td>2</td>
	                <td>本科</td>
	                <td>北京</td>
	                <td>5000-7000</td>
	                <td>2020-02-22</td>
	                <td>
					<a href="javascript:void(0)" onclick="delCollect(2);">删除</a>
					<a href="gr_recruit_des.html">查看</a>
					</td>
	            </tr>
              </table>
              <label id="label1" style="color:red">提示信息位置</label>
             <table border="0" cellspacing="0" cellpadding="0" class="num" >
              <tr>
                <td>
                  <!--<div class="list_page"><p><a href="#"><img src="images/list_pape_left.gif" /></a><span>1</span><a href="#">2</a><a href="#">3</a><a href="#">4</a><a href="#">5</a><a href="#"><img src="images/list_pape_right1.jpg" /></a><a href="#"><img src="images/list_pape_top.jpg" /></a></p></div>-->
				  <div class="tcdPageCode"></div>
        		</td>
              </tr>
             </table>
    </div>
</div>

<div class="foot">
    <ul>
      相关网站导航：<select name="menu1" onchange="MM_jumpMenu('parent',this,0)" style="margin-left:20px;display:inline;">
          <option>-- 自  治 区 政 府 部 门 --</option>
        </select> 
        <select name="menu2" onchange="MM_jumpMenu('parent',this,0)" style="margin-left:20px;display:inline;">
          <option>-- 地 州 网  站 --</option>
        </select>
            <select name="menu3" onchange="MM_jumpMenu('parent',this,0)" style="margin-left:20px;display:inline;">
              <option>--主 要  新 闻  媒  体 --</option>
            </select>
            <select name="menu4" onchange="MM_jumpMenu('parent',this,0)" style="margin-left:20px;display:inline;">
              <option>-- 主 要 门 户 及 合 作 网 站 --</option>
            </select>
      </ul>
    
    <p>主办单位：塔城地区人力资源和社会保障局<br />技术支持：塔城地区人力资源和社会保障局信息化办公室</p>
</div>
</body>
</html>
